Micron Document
Fox's Git Mirrors


Displaying Raw • Download

examples/wasm/vendor/github.com/mdlayher/socket/setbuffer_others.go 633735d797cc5f5d48cb2e22e8fd7cd743930daf (633735d7) Text, 433 B

//go:build !linux
// +build !linux

package socket

import "golang.org/x/sys/unix"

// setReadBuffer wraps the SO_RCVBUF setsockopt(2) option.
func (c *Conn) setReadBuffer(bytes int) error {
return c.SetsockoptInt(unix.SOL_SOCKET, unix.SO_RCVBUF, bytes)
}

// setWriteBuffer wraps the SO_SNDBUF setsockopt(2) option.
func (c *Conn) setWriteBuffer(bytes int) error {
return c.SetsockoptInt(unix.SOL_SOCKET, unix.SO_SNDBUF, bytes)
}

Served by rngit 1.5.2 - Generated in 0.04s